Frame popup support and some small fixes
authorBar Magal <barmagal@gmail.com>
Mon, 6 Jul 2015 10:46:46 +0000 (13:46 +0300)
committerBar Magal <barmagal@gmail.com>
Mon, 6 Jul 2015 10:46:46 +0000 (13:46 +0300)
commit02140265c42cc3f4793bfcd05ee6c5165ecd4b2c
tree50c0240c33562b59219d2fbb1afe4d761bb78a47
parent20353a292366d5bbd16f90fe0480f00b26f1fdc7
Frame popup support and some small fixes

Summary of changes:
- add emacs 24.3 as a dependency, because
  `display-buffer-in-major-side-window` doesn't exist in older emacsen
- add option to show which-key buffer in a popup frame
  `(setq which-key-popup-type 'frame)`
- stop close timer when disabling which-key-mode
- don't hide which-key buffer before showing it. instead, show methods
  handle the case that the buffer is already shown
- `which-key/hide-popup` calls function depending on popup
  type (similar to `which-key/show-popup`)
- use `display-buffer-in-major-side-window` instead of
  `display-buffer-in-side-window`, for popup type side-window. ensures
  new side window is created properly even if other side windows already
  exist.
- erase previous contents of which-key buffer before inserting new
  contents, and adjust buffer display in window by moving point to
  the buffer's beginning
which-key.el